
import Layout from '@/layout'

export default {
  path: '/category',
  component: Layout,
  redirect: '/category/list',
  name: 'category',
  meta: {
    title: '分类管理',
    icon: 'el-icon-share'
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/category/list'),
      name: 'category_list',
      meta: { title: '分类列表', noCache: true }
    },
    {
      path: 'edit/:id(\\d+)',
      component: () => import('@/views/category/edit'),
      name: 'category_edit',
      hidden: true,

      meta: { title: '编辑分类', noCache: true, activeMenu: '/category/list' }
    },
    {
      path: 'create',
      component: () => import('@/views/category/create'),
      name: 'category_create',
      meta: { title: '添加分类', noCache: true }
    },
  ]
}

